<!--{eval $_TPL['titles'] = array('搜索');}-->
<!--{template header_tpl}-->
<div class="grid_16 main_box">
	<div class="grid_16 box">
		<h1>搜索:</h1>
		<div class="grid_15">
			<div class="tabs_header">
				<ul class="tabs">
					<li<!--{if isset($actives[all])}-->$actives[all]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=all&searchsubmit=yes">
							<span>全部</span>
						</a>
					</li>
					<li<!--{if isset($actives[work])}-->$actives[work]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=work&searchsubmit=yes">
							<span>作品</span>
						</a>
					</li>
					<li<!--{if isset($actives[user])}-->$actives[user]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=user&searchsubmit=yes">
							<span>成员</span>
						</a>
					</li>
					<li<!--{if isset($actives[worktag])}-->$actives[worktag]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=worktag&searchsubmit=yes">
							<span>作品标签</span>
						</a>
					</li>
				</ul>
			</div>
			<form action="{SITEURL}search/index/" method="get" accept-charset="utf-8">				
				<div class="grid_15 searchbar">
					<div class="grid_10">
						<input type="text" name="searchkey" value="{$searchkey}" id="searchkey" class="searchkey">
					</div>
					<input type="hidden" value="{$searchtype}" name="searchtype"/>
					<div class="grid_4"><input type="submit" name="searchsubmit" value="搜索" id="searchsubmit" class="searchsubmit"></div>
				</div>
			</form>
		</div>
		<!--{if isset($userlist)}-->
		<div class="grid_15 search_all_userlist">

				<!--{loop $userlist $user}-->
					<div class="grid_5 alpha omega">
						<div class="avatar50">
							<a href="{SITEURL}home/index/{$user[uid]}"><img src="{$user[avatar_small]}" title="{$user[name]}"/></a>
						</div>
						<div class="grid_2">
							{$user[name]}<br />
							{$user[fans_count]}
						</div>
						<div class="clear"></div>
					</div>
				<!--{/loop}-->

		</div>
		<!--{/if}-->
		<div class="grid_15 searchlist">
		<!--{if $list}-->
			<!--{loop $list $item}-->
					<div class="grid_15 searchitem">
						<div class="avatar50">
							<a href="{SITEURL}home/index/{$item[uid]}"><img src="{$item[avatar_small]}" title="{$item[name]}"/></a>
						</div>
						<div class="grid_4 searchwork">
							<div class="work_thumb">
								<a href="{$item[url]}" title="{$item[title]}"><img src="{$item[thumbimg]}" /></a>
							</div>
						</div>
						<div class="grid_8 workinfo">
							<p class="title">{$item[searchtitle]}</p>
							<p class="gray">
								喜欢({$item[likenum]}) / 回复({$item[replynum]}) / 查看({$item[viewnum]})<br />
								<!--{if $item[tags]}-->
								TAG:
									<!--{loop $item[tags] $tagid $tagname}-->
										<a href="{SITEURL}search/index/?searchkey=$tagid&searchtype=tagid&searchsubmit=yes">{$tagname}</a> |
									<!--{/loop}-->
								<!--{/if}-->
							</p>
							
						</div>
						<div class="clear"></div>
					</div>
			<!--{/loop}-->
			<div class="grid_15 footactions">
				<!--{if isset($multi)}-->
					<div class="pages">
							{$multi}
					</div>
				<!--{/if}-->
			</div>
		<!--{else}-->
			<div class="grid_15">
				<div class="errornotice">没有你要找的，你可以换个关键词再试试。 </div>
			</div>
		<!--{/if}-->
		</div>
	</div>
</div>
<div class="grid_7 omega sidebar box">
	<h6>邀请好友</h6>
	<a href="{SITEURL}invite/index/">通过邮件发送邀请</a>
</div>
<!--{template footer_tpl}-->